import {post,get} from '../util/requests/requests';

export default {
  adminLogin(url,AdminLoginData) {
    return post({
      url,
      params: AdminLoginData
    })
  },
//获取科室列表
  getSectorList() {
    return post({
      noJson: false,
      url: '/hospital/sector/getAllSectorPage',
      params:{
        "pageNo": 1,
        "pageSize": 10
      }
    })
  },

//获取科室下的医生列表
  getSectorDocInfo() {
    return post({
      url: '/hospital/sector/getAllDoctorsPage/{sectorId}',
      params:{
        "pageNo": 1,
        "pageSize": 10
      }
    })
  },

  getAllDocInfo(){
    return post({
      url:'/hospital/sector/doctor/getAllDoctors',
      params:{
        "pageNo": 1,
        "pageSize": 20
      }
    })
  },

  /*医生获取信息*/
  getDocInfo() {
    return post({
      url: '/doctor/getSelfInfo',
    })
  },
//新增医生
  addDocInfo(docInfoData){
    return post({
      url: '/hospital/sector/doctor/addDoctor',
      params: docInfoData
    })
  },

  addRecordInfo(recordInfoData){
    return post({
      noJson: false,
      url: '/doctorRecords/addRecord',
      params: recordInfoData
    })
  },
  /*医生获取病历列表*/
  getRecordInfo() {
    return post({
      url: '/doctorRecords/getRecordsByPage',
      params:{
        "pageNo": 1,
        "pageSize": 20
      }
    })
  },



  reviseRecordInfo(recordInfo,id){
    return post({
      url:'/doctorRecords/reviseRecord',
      noJson: false,
      params: {
        id,
        ...recordInfo
      }
    })
  },


}
